<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>查看文档</title>
	</head>
	<body>
		<div class="div_title">
			<s:if test="type==1">
				查看工作动态/新闻
			</s:if>
			<s:elseif test="type==2">
				查看通知公告
			</s:elseif>
			<s:elseif test="type==3">
				查看赤子情怀
			</s:elseif>
			<s:elseif test="type==4">
				查看历年年鉴
			</s:elseif>
			<s:elseif test="type==5">
				查看基金会简介
			</s:elseif>
			<s:elseif test="type==6">
				查看组织机构
			</s:elseif>
			<s:elseif test="type==7">
				查看基金会章程
			</s:elseif>
			<s:elseif test="type==8">
				查看管理办法
			</s:elseif>
			<s:elseif test="type==9">
				查看联系方式
			</s:elseif>
			<s:elseif test="type==10">
				查看捐赠途径
			</s:elseif>
			<s:elseif test="type==11">
				查看捐赠流程
			</s:elseif>
			<s:elseif test="type==12">
				查看鸣谢办法
			</s:elseif>
			<s:elseif test="type==13">
				查看免税文件
			</s:elseif>
			<s:elseif test="type==14">
				查看下载文件
			</s:elseif>
			<s:elseif test="type==15">
				查看基金使用记录
			</s:elseif>
		</div>
		<div class="div_article">
			<table class="table_article">
				<tbody>
					<tr>
						<td class="article_title">
							${article.title}
						</td>
					</tr>
					<tr>
						<td class="article_sub_title">
							${article.author.name} - <s:date name="article.updateDate" format="yyyy-MM-dd"/>
						</td>
					</tr>
					<s:if test="article.imagePath!=null">
						<tr>
							<td>
								<img alt="" src="upload/image/${article.imagePath}"/>
							</td>
						</tr>
					</s:if>
					<tr>
						<td class="article_body">
							<s:property escapeHtml="false" value="article.content"/>
						</td>
					</tr>
					<s:if test="article.filePath!=null">
						<tr>
							<td>
								<a href="manage/downloadArticleEnclosure.action?uuid=${article.uuid}">${article.title}-附件</a>
							</td>
						</tr>
					</s:if>
				</tbody>
			</table>
		</div>
	</body>
</html>